package cn.com.demo.microservice.consumer.service.feign;

import cn.com.demo.microservice.consumer.service.feign.Impl.IAccountFactory;
import cn.com.demo.microservice.consumer.service.feign.Impl.IUserFactory;
import cn.com.demo.microservice.entity.AqAccount;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "${service.provider.accout.t11.name}",fallbackFactory = IAccountFactory.class)
public interface IAccountAddFeginService {
    @PostMapping("/account/add")
    public int addAccount(@RequestBody AqAccount account);
}
